package com.example.studyplanning.mapper;

import com.example.studyplanning.entity.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface AdminMapper {
    @Select("select * from admin where adminName=#{adminName} and adminPassword=#{adminPassword}")
    Admin SelectByAdmin(@Param("adminName") String adminName,@Param("adminPassword") String adminPassword);

    //（后台）5.1管理员信息修改
    @Update("update admin set adminName=#{adminName},adminPassword=#{adminPassword} where adminID=#{adminID}")
    Integer UpdateAdmin(Admin admin);
}
